package com.dreamchaser.familydevice.domain.vo.input;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 注册接口实体类
 */
@ApiModel(value = "注册账户实体")
@Data
public class UserVO {

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号", required = true)
    @NotBlank(message = "账号不得为空")
    private String account;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不得为空")
    private String password;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", required = true)
    @NotBlank(message = "邮箱不得为空")
    private String email;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名", required = true)
    @NotBlank(message = "姓名不得为空")
    private String name;
}
